package com.zjy.order.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zjy.basic.domain.BaseDomain;
import com.zjy.user.domain.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 实体类：
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class OrderAdopt extends BaseDomain{
    /**
     * 摘要
     */
    private String digest;
    /**
     * 待支付2 待确认0 完成1 取消-1
     */
    private Integer state = 0;
    private BigDecimal price;
    private String orderSn;
    private String paySn;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date lastPayTime = new Date();
    private Date lastConfirmTime;
    private Long petId;
    private Long userId;
    private Long shopId;
    private Integer serviceMethod;

    private User user;
}
